package com.tarena.sentinel.demo01.handler.block;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class GlobalBlockHandler {
    public static String res01Block(String name, BlockException e){
        //处理降级逻辑
        System.out.println("异常类型:"+e.getClass().getName());
        return "你的请求被拦截了,blockHandler";
    }
}
